﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TicketMGR.Hibernate.BusinessObjects
{
    class ChannelHistory : ObjectBase
    {
        private System.DateTime? _changedDate = null;
        private string _changedContent = null;

        private Channel _channel = null;

        private Guid _id ;
        public virtual Guid Id
        {
            get
            {
                return _id;
            }
            set
            {
                OnIdChanging();
                _id = value;
                OnIdChanged();
            }
        }
        public virtual void OnIdChanging() { return; }
        public virtual void OnIdChanged() { return; }

        public virtual System.DateTime? ChangedDate
        {
            get { return _changedDate; }
			set
			{
				OnChangedDateChanging();
				_changedDate = value;
				OnChangedDateChanged();
			}
        }
		public virtual void OnChangedDateChanging(){return;}
        public virtual void OnChangedDateChanged() { return; }
		
		public virtual string ChangedContent
        {
            get { return _changedContent; }
			set
			{
				OnChangedContentChanging();
				_changedContent = value;
				OnChangedContentChanged();
			}
        }
        public virtual void OnChangedContentChanging() { return; }
        public virtual void OnChangedContentChanged() { return; }
		
		public virtual Channel Channel
        {
            get { return _channel; }
			set
			{
				OnChannelChanging();
				_channel = value;
				OnChannelChanged();
			}
        }
        public virtual void OnChannelChanging() { return; }
        public virtual void OnChannelChanged() { return; }
    }
}
